package com.qiyu.datasource.annotation;

import com.qiyu.datasource.config.DataSourceConfigRegister;
import com.qiyu.datasource.enums.DatasourceConfigEnum;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 注入数据源
 *
 * @author idea
 * @data 2020/3/7
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(DataSourceConfigRegister.class)
public @interface AppDataSource {

    DatasourceConfigEnum[] datasourceType();

    DatasourceConfigEnum defaultType();
}
